#ifndef _ONE_LINE_oneLineUltrasonic_H_
#define _ONE_LINE_oneLineUltrasonic_H_
#include "Arduino.h"

class OneLineUltrasonic
{
public:
	OneLineUltrasonic( uint8_t port);
	double distance(uint16_t MAXcm);
private:
	uint8_t _oneLineUltrasonic_pin;
	long measure(unsigned long timeout);
    volatile bool _measureFlag;
    volatile long _lastEnterTime;
    volatile float _measureValue;
};

#endif